package com.eight.paper.admin.domain.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.math.BigDecimal;


/**
 * 题目
 *
 * @author 爱考线上考试系统
 * @date 2023-10-04
 */
@Data
public class B1Choice {

    @ApiModelProperty("题目")
    @NotBlank(message = "题目不能为空")
    @Size(min = 0, max = 1024, message = "题目长度不能超过1024个字符")
    private String title;

    @ApiModelProperty("解析")
    @Size(min = 0, max = 1024, message = "解析长度不能超过1024个字符")
    private String explain;

    @ApiModelProperty("答案")
    @Pattern(regexp = "^[A-Z]$", message = "选项编号可选字母为大写[A-Z]")
    private String answer;

    @ApiModelProperty("考生答案")
    private String examineeAnswer;

    @ApiModelProperty("小题分值")
    private BigDecimal score;

    @ApiModelProperty("考生得分")
    private BigDecimal examineeScore;

    @ApiModelProperty("正确标志")
    private Integer correct;
}
